from django.contrib import admin
from crm import models
from king_admin.service.stark import site, ModelStark
# Register your models here.

class CustomerAdmin(ModelStark):
    list_display = ('id', 'qq', 'source', 'consultant', 'content', 'date')
    list_filter = ('source', 'consultant', 'date')
    search_fields = ('qq', 'name')
    # raw_id_fields = ('consult_course',)
    # filter_horizontal = ('tags',)
    # list_editable = ('status',)

site.register(models.Customer, CustomerAdmin)
site.register(models.CustomerFollowUp)
site.register(models.Enrollment)
site.register(models.Course)
site.register(models.ClassList)
site.register(models.CourseRecord)
site.register(models.Branch)
site.register(models.Role)
site.register(models.Payment)
site.register(models.StudyRecord)
site.register(models.UserProfile)
site.register(models.Tag)
site.register(models.Menu)









